import {defineStore} from 'pinia'

export const useCountStore = defineStore('count',{
    actions:{
        increments(value:number){
            this.sum+=value
        }
    },
    state(){
        return {
            sum:6,
            schoole:"xxx",
            address:'yyy'
        }
    },
    getters:{
        // bigSum:state=>state.sum*10
        bigSum():number{
            return this.sum*10
        }
    }
})